angular.module('App', [])
    .controller('MyController', function($scope, $intSerpolate) {
// 设置监听
        $scope.$watch('emailBody', function(body) {
            if (body) {
                var template = $interpolate(body);
                $scope.previewText =
                    template({to: $scope.to});
            }
        });
    });